﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="memberDetail.aspx.cs" Inherits="MxWeiXinPF.Web.weixin.toupiao.memberDetail" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title></title>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
    <meta content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" name="viewport">
    <meta name="Keywords" content="" />
    <meta name="Description" content=" " />
    <!-- Mobile Devices Support @begin -->
    <meta content="application/xhtml+xml;charset=UTF-8" http-equiv="Content-Type">
    <meta content="no-cache,must-revalidate" http-equiv="Cache-Control">
    <meta content="no-cache" http-equiv="pragma">
    <meta content="0" http-equiv="expires">
    <meta content="telephone=no, address=no" name="format-detection">
    <meta name="apple-mobile-web-app-capable" content="yes" />
    <!-- apple devices fullscreen -->
    <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
    <style type="text/css">
        * {
            margin: 0;
            padding: 0;
            outline: 0;
            -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
        }

        body {
            background: white;
            border: 6px solid #e40080;
        }

            body > p {
                text-align: center;
            }



        .mycon {
             
            width: 94%;
            margin-left:3%;
         
            background: #ffd5e7;
            border-radius: 5px;
            margin-bottom: 20px;
            margin-top: 10px;
            padding: 30px 0px;
        }

        .mycon_dt {
            margin-top:40px;
            width: 100%;
             text-align:center;
        }

           

        .mycon > .bian {
            display: block;
            float: left;
            margin-left: 10%;
            color:#980043;
        }

        .mycon > .piao {
            display: block;
            float: right;
            margin-right: 10%;
            color:#980043;
        }

        .con_img {
            text-align: center; 
        }

        
    </style>
    <script src="../../scripts/jquery/jquery-2.1.0.min.js"></script>
    <script src="js/layer.m.js"></script>
    <script type="text/javascript">
        $(function () {
           

            $("#want_tp").click(function () {

                
                if ('<%=ckHdBegin%>' == 'True') {

                    if ('<%= isGuanZhu%>' != 'True') {
                        //提示框
                        layer.open({
                            content: '关注“西宁市邮政管理局”微信（微信号：xnsyzglj）',
                            btn: ['好'],
                            yes: function () {
                                //此处跳转到关注页面
                                location.href = "http://mp.weixin.qq.com/s?__biz=MzI5MjA0MzQ4Mg==&mid=208294420&idx=1&sn=b528c5e72df086b8ef0470f4f5931883#rd";
                            }
                        });
                        return;
                    }

                    var id = $(this).attr("alt");
                    var piaoshuspan = "piao_span_<%=mModel.id %>";

                    var req = {
                        openid: "<%=openid%>",
                        wid: "<%=wid%>",
                        actid: "<%=aid%>",
                        memberid: id,
                        radom: Math.random()
                    };

                    $.post("getdata.ashx?mycat=toupiao", req, function (data) {
                        if (data.err == 1) {
                            layer.open({
                                content: data.msg,
                                time: 2,
                                success: function (elem) {
                                    $("#" + piaoshuspan).html(data.newpiao + "票");
                                }

                            });

                        }
                        else {

                            //提示框

                            layer.open({
                                content: data.msg,
                                time: 2,


                            });



                        }
                    }, "json");



                } else {
                    //提示框
                    layer.open({
                        content: '活动未开始或已停止',
                        btn: ['哦，好吧']
                    });
                }





            });
        });
 
    </script>
</head>
<body>
    <div class="mycon">
         
        <span class="bian">编号：<%=mModel.bianma %></span>
        <span class="piao" id="piao_span_<%=mModel.id %>"><%=mModel.piao %>票</span>
        
        <div class="mycon_dt">
                <img src="<%=mModel.imgurl %>" width="85%" />
        </div>
        <div class="xiang_content">
            <%=mModel.miaoshu %>
        </div>
        <div>
             <p style="padding-top:24px; text-align:center;">
                
                <img src="images/want_tp.jpg" width="60%" id="want_tp" alt="<%=mModel.id%>" />
                <img src="images/wang_cy.jpg" width="60%" onclick="javascript:location.href='canyu.aspx?wid=<%=wid %>&aid=<%=aid %>'" />
            </p>
        </div>
    </div>

    
</body>
</html>